<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .grid-container{
        display: grid;
        grid-template-rows: [r1] 200px [r2] 200px [r3] 200px [r4];
        grid-template-columns: [ c1 ] 200px [ c2 ] 200px [ c3 ] 200px [ c4 ] 200px;
        /* background-color: skyblue; */
        justify-content: center;
        align-items: center;
        gap: 10px;
        grid-auto-flow: column;
        grid-template-areas: 
            "a d d e"
            "b d d f"
            "c d d g";
    }

    .grid-item{
        width: 100%;
        height: 100%;
        background-color: tomato;
        font-size: 30px;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    .grid-item img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1);
        transition: transform 0.5s ease;
        position: relative;
    }

    .grid-item:hover img{
        transform: scale(1.1);
    }

    .grid-item::after{
        content: '';
        position: absolute;
        background-color: rgba(0, 0, 0, 0);
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: background-color 0.5s ease;
        z-index: 1;
    }

    .grid-item:hover::after{
        background-color: rgba(0, 0, 0, .4);
    }

    .max{
        grid-area: d;
    }


</style>

<body>
    <div class="grid-container">
        <div class="grid-item">
            <img src="/src/img/grid/01.png" alt="">
        </div>
        <div class="grid-item">
            <img src="/src/img/grid/02.png" alt="">
        </div>
        <div class="grid-item">
            <img src="/src/img/grid/03.png" alt="">
        </div>
        <div class="grid-item max">
            <img src="/src/img/grid/01.png" alt="">
        </div>
        <div class="grid-item">
            <img src="/src/img/grid/04.png" alt="">
        </div>
        <div class="grid-item">
            <img src="/src/img/grid/05.png" alt="">
        </div>
        <div class="grid-item">
            <img src="/src/img/grid/06.png" alt="">
        </div>
    </div>
</body>
</html>